<?php

declare(strict_types=1);

namespace WebTus;

/**
 * Class TusReadFile 文件映射
 */
class TusReadFile
{
    public $file = '';
    public $offset = 0;
    public $size = 0;

    public function __construct(string $file, int $offset = 0, int $size = 0)
    {
        if ($size < 0) {
            $size = 0;
        }
        $this->file = $file;
        $this->offset = $offset;
        $this->size = $size;
    }
}
